﻿<!DOCTYPE html>
<html lang="en-us">
<!--

ULink 柚链 1.0版本源代码
作者：Joseph Lee
QQ：202938099

ULink Ver1.0 Source Code
Author: Joseph Lee
QQ: 202938099

使用 MIT License 开源协议开源
Opensource under the MIT License

http://www.air-software.top
http://fwdl.ink

-->
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <meta http-equiv="Page-Enter" content="revealTrans(Duration=3.0,Transition=12)">
  <meta name="author" content="Joseph Lee" />
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0"/>
  <!-- CSS  -->
  <link href="css/googleicon.css" rel="stylesheet">
  <link href="css/materialize.css" type="text/css" rel="stylesheet" media="screen,projection" />
  <link href="css/style.css" type="text/css" rel="stylesheet" media="screen,projection" />
  <!-- <link href="css/animate.css" type="text/css" rel="stylesheet" /> -->
  <?php
	 @$target = $_POST['target'];
	 @$address = $_POST['ulink'];
	 require 'generate.php';
	 if($target !== '' and $target !== null and $address !== '' and $address !== null) {
	 $result = generate($address,$target); 
	 switch($result)
	 {
		case 0:
			echo '
			<script type="text/javascript">
			alert("Succeed. ");
			</script>
			';
			break;
		case 1:
			echo '
			<script type="text/javascript">
			alert("The link that you want is already exists! ");
			</script>
			';
			break;
		case 2:
			echo '
			<script type="text/javascript">
			alert("Reserved. ");
			</script>
			';
			break;
		case 3:
			echo '
			<script type="text/javascript">
			alert("Did you forget to fill in some text? ");
			</script>
			';
			break;
		default:
			echo '
			<script type="text/javascript">
			alert("Unknown error [null]");
			</script>
			';
		}
	 }
  ?>
  <title>ULink: A High-Speed Short Link Platform</title>
  <script type="text/javascript">
  // From zhidao.baidu.com
    userLang = 'ENGLISH';
	console.log('Hello, friends from around the world, welcome to use ULink! ');
	// Hello! 
	console.log('Copyright (C) 2017 Joseph Lee. All rights reserved. \nE-Mail: admin@air-software.top\nBlog: http://blog.air-software.top\nQQ: 202938099');
	console.log('Do not distributed! ');
  </script>
</head>
<body>
  <nav class="light-blue lighten-1 nav-extended" role="navigation">
    <div class="nav-wrapper container"><a id="logo-container" href="#" class="brand-logo center">ULink</a></div>
	<div class="nav-content">
      <ul class="tabs tabs-transparent">
        <li class="tab"><a class="active" href="#">Homepage</a></li>
        <li class="tab"><a href="#generator">Generator</a></li>
        <!-- <li class="tab"><a href="#query">Query</a></li> -->
      </ul>
    </div>
  </nav>
  <div class="section no-pad-bot" id="index-banner">
    <div class="container">
      <br><br>
      <h1 class="header center orange-text">ULink</h1>
      <div class="row center">
        <h5 class="header col s12 light">A High-Speed Short Link Platform. </h5>
      </div>
      <div class="row center">
	  
	  <div id="generator">
	  <h5 class="header col s12 light">
	  This is the generator. 
	  <form action="global.php" method="post"><br>
		Target link ( With prefix(es) ) : <input type="text" name="target" />
		Linkname: <input type="text" name="ulink" />
		<input type="submit" class="waves-effect" value="Submit" />
	  </form>
	  </h5>
	  </div>
	  
	  <div id="query">
	  <!--
	  <h5 class="header col s12 light">
	  这是访问量查询。</h5>
	  </div>
	  -->
	  
      </div>
      <br><br>

    </div>
  </div>


  <div class="container">
    <div class="section">

      <!--   Icon Section   -->
      <div class="row">
	    <br>
        <div class="col s12 m4">
          <div class="icon-block">
            <h2 class="center light-blue-text"><i class="material-icons">&#xE905;</i></h2>
            <h5 class="center">Jumping just like you're taking off. </h5>

            <p class="light">Click the link, usually just 1 second, jump in a moment. </p>
          </div>
        </div>

        <div class="col s12 m4">
          <div class="icon-block">
            <h2 class="center light-blue-text"><i class="material-icons">&#xE2BD;</i></h2>
			<h5 class="center">Worldwide. </h5>

            <p class="light">Incapsula and yunaq.com, from the USA to the PRC. </p>
          </div>
        </div>

        <div class="col s12 m4">
          <div class="icon-block">
            <h2 class="center light-blue-text"><i class="material-icons">&#xE643;</i></h2>
            <h5 class="center">Without any ADs! </h5>

            <p class="light">All of pages in ULink is without any ADs and it will keep in future! <br>So great experience! Isn't it? </p>
          </div>
        </div>
      </div>
	<br><br>
    </div>
    <br>
  </div>

  <footer class="page-footer orange">
    <div class="container">
      <div class="row">
        <div class="col l3 s12">
          <h5 class="white-text">Links</h5>
          <ul>
            <!-- <li><a class="white-text" href="reserved/ULProject/sourcedl.html">Download ULink Source Code</a></li> -->
            <!-- <li><a class="white-text" href="reserved/ULProject/gitee.html">ULink Project in Gitee</a></li> -->
            <li><a class="white-text" href="mailto:admin@air-software.top">Mail To Joseph Lee</a></li>
            <li><a class="white-text" href="mailto:webmaster@air-software.top">Mail To The Webmaster</a></li>
          </ul>
        </div>
        <div class="col l3 s12">
          <h5 class="white-text">Language / 語言</h5>
          <ul>
            <li><a class="white-text" href="index.php">简体中文 / Simplified Chinese</a></li>
            <!-- <li><a class="white-text" href="language.php?lang=zh-tw">繁體中文 / Traditional Chinese</a></li> -->
            <li><a class="white-text" href="global.php">English</a></li>
            <!-- <li><a class="white-text" href="#!">Link 4</a></li> -->
          </ul>
        </div>
      </div>
    </div>
    <div class="footer-copyright">
      <div class="container">
      Copyright &copy; <?php echo(date("Y")); ?> Joseph Lee. All rights reserved. <br>
	  Users on this platform are not allowed to issue laws and regulations against China and / or your country or area on this platform. <br>
	  The webmaster reserves the right to delete and change the links that are generated on the platform at any time. 
      </div>
    </div>
  </footer>


  <!--  Scripts-->
  <script src="js/jquery-2.1.1.min.js"></script>
  <script src="js/materialize.js"></script>
  <script src="js/init.js"></script>

  </body>
</html>